﻿using System.Windows.Controls;
using VideoTools.Commands;
using VideoTools.Tasks;
using Button = System.Windows.Controls.Button;
namespace VideoTools.VideoView
{
    /// <summary>
    /// MargeM3U8Page.xaml 的交互逻辑
    /// </summary>
    public partial class DownloadM3u8Page : Page
    {
        private static volatile DownloadM3u8Page _instance;
        private static object SyncRoot = new object();
        public static DownloadM3u8Page Instance
        {
            get
            {
                if (_instance == null)
                {
                    lock (SyncRoot)
                    {
                        if (_instance == null)
                        {
                            _instance = new DownloadM3u8Page();
                        }
                    }
                }

                return _instance;
            }
        }
        private DownloadM3u8Page()
        {
            InitializeComponent();
            this.DataContext = DownloadM3u8Commands.Instance;
        }

    }
}
